package com.woniu.commentorder.service.serviceImp;

import com.woniu.commentorder.mapper.WalletMapper;
import com.woniu.commentorder.service.WalletService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WalletserviceImp implements WalletService {
    @Autowired
    private WalletMapper walletMapper;

    @Override
    public void add(int num, int id) {
        walletMapper.addMoney(num, id);
    }

    @Override
    public void dec(int num, int id) {
        walletMapper.deMoney(num, id);
    }
}
